<%--
  Created by IntelliJ IDEA.
  User: 44659
  Date: 2018/5/14
  Time: 19:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%

    String username = request.getParameter("username");
    String password = request.getParameter("password");

    if ("admin".equals(username) && "123456".equals(password)){

        out.write("登录成功！");

        session.setAttribute("isLogin","true");
        response.sendRedirect("userList.jsp");

    }else {

        out.write("用户名或密码不正确，请重新输入！");
    }
%>

</body>
</html>
